home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 20 / Cream of the Crop 20 (Terry Blount) (1996).iso / program / n_b_v203.zip / DAC_ARRS.DMO < prev    next >
Text File  |  1996-07-04  |  2KB  |  48 lines

  1. $if 0
  2.     ┌──────────────────────────╖                        PowerBASIC v3.20
  3.  ┌──┤          DASoft          ╟──────────────────────┬──────────────────╖
  4.  │  ├──────────────────────────╢    Copyright 1995    │ DATE: 1995-10-01 ╟─╖
  5.  │  │ FILE NAME   DAC_ARRS.DMO ║          by          ╘════════════════─ ║ ║
  6.  │  │                          ║  Don Schullian, Jr.                     ║ ║
  7.  │  ╘══════════════════════════╝                                         ║ ║
  8.  │ A license is hereby granted to the holder to use this source code in  ║ ║
  9.  │ any program, commercial or otherwise,  without receiving the express  ║ ║
  10.  │ permission of the copyright holder and without paying any royalties,  ║ ║
  11.  │ as long as this code is not distributed in any compilable format.     ║ ║
  12.  │  IE: source code files, PowerBASIC Unit files, and printed listings   ║ ║
  13.  ╘═╤═════════════════════════════════════════════════════════════════════╝ ║
  14.    │                ....................................                   ║
  15.    ╘═══════════════════════════════════════════════════════════════════════╝
  16. $endif
  17.  
  18. '.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°
  19. ' ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° °
  20.  
  21. $INCLUDE "DAS-NB01.INC"
  22. COLOR 7,0
  23. CLS
  24.  
  25. ? "┌────────────────────────────────────────────────────────────────────────
  26. ? "│ fDACread$   ( Colour$ )                 DACwriteSTR ( Colour$ )
  27. ? "│  DACreadARR ( Arr?, Colors% )           DACwriteARR ( Arr?, Colors% )
  28. ? "├─────────────────────────────────────────────────────────────────────────
  29. ? "│ These are just DACset and DACget carried a bit farther. The only
  30. ? "│ restriction is that they start reading at the beginning of the DAC. You
  31. ? "│ can't cut 16 RGBs out of the middle!
  32. ? "└─────────────────────────────────────────────────────────────────────────
  33.  
  34. DIM DACarr?(2,33)
  35. DACreadARR DACarr?(0,1), 33
  36.  
  37. PRINT REPEAT$( 3, "                R  G  B   " )
  38. PRINT REPEAT$( 3, " ┌──────────────────────┐ " )
  39. FOR C? = 1 TO 33
  40.   PRINT USING " │ DAC N°: ## "; C?-1;
  41.   FOR RGB? = 0 TO 2
  42.     PRINT USING " ##"; DACarr?(RGB?,C?);
  43.   NEXT
  44.   PRINT " │ ";
  45.   IF ( C? MOD 3 ) = 0 THEN PRINT ELSE
  46. NEXT
  47. PRINT REPEAT$( 3, " └──────────────────────┘ " )
  48.